import Mock from "mockjs";

Mock.mock("/api/user/menu", "get", {
  status: 200,
  message: "ok",
  data: {
    menus: [
      {
        id: 1,
        path: "/",
        title: "控制台",
        icon: "DashboardOutlined",
        component: "Dashboard",
      },
      {
        id: 2,
        title: "用户管理",
        icon: "UserOutlined",
        path: "/user",
      },
      {
        id: 21,
        parentId: 2,
        title: "用户列表",
        path: "/user/user",
        component: "User",
      },
      {
        id: 3,
        title: "权限管理",
        icon: "LockOutlined",
        path: "/permission",
      },
      {
        id: 31,
        parentId: 3,
        title: "菜单列表",
        path: "/permission/menu",
        component: "PermissionMenu",
      },
      {
        id: 32,
        parentId: 3,
        title: "角色列表",
        path: "/permission/role",
        component: "PermissionRole",
      },
    ],
    permissions: [],
  },
});
